package ${packageName}.${requestPackage};

<#list table.fields as field>
<#if field.propertyType?index_of("BigDecimal")!=-1>
<#assign importBigDecimal=true/>
</#if>
<#if field.propertyType?index_of("Date")!=-1>
<#assign importDate=true/>
</#if>
</#list>
<#if importBigDecimal?exists>
import java.math.BigDecimal;
</#if>
<#if importDate?exists>
import java.time.LocalDateTime;
</#if>
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.lang.Nullable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * @Description: ${table.comment}创建请求
 * @author: ${author}
 * @Date: ${date}
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "${table.comment}创建请求")
public class ${entity}CreateRequest {
<#-- 循环属性名称 -->
<#list table.fields as field>
    <#if field.keyIdentityFlag>

    <#else>
        /**
        *   ${field.comment}
        */
        <#if field.null>
        @Nullable
        @ApiModelProperty(value = "${field.comment}", required = false)
        <#else >
            <#if field.propertyType=="String">
        @NotBlank
        @Size(max = ${field.size})
            <#else >
        @NotNull
            </#if>
        @ApiModelProperty(value = "${field.comment}", required = true)
        </#if>
        private ${field.propertyType} ${field.propertyName};
    </#if>


</#list>

}
